package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新增值班对象 tmd_duty_message
 * 
 * @author ruoyi
 * @date 2024-04-20
 */
public class TmdDutyMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 部门id */
    @Excel(name = "部门名称")
    private Long deptId;

    @Excel(name = "部门名称")
    private String deptName;

    /** 名称 */
    @Excel(name = "名称")
    private String dutyName;

    /** 排班名称 */
    @Excel(name = "排班名称")
    private Long arrangeNameId;
    private String arrangeName;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 值班人 */
    @Excel(name = "值班人")
    private Long dutyPersonId;
    private String userName;

    /** 值班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "值班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dutyTime;

    /** 联系人id */
    @Excel(name = "联系人id")
    private Long linkmanId;
    private String linkman;
    private String phonenumber;

    //状态
    @Excel(name = "状态")
    private Integer dutyStatus;
    /** 附件 */
    @Excel(name = "附件")
    private String file;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setDutyName(String dutyName)
    {
        this.dutyName = dutyName;
    }

    public String getDutyName() 
    {
        return dutyName;
    }
    public void setArrangeNameId(Long arrangeNameId) 
    {
        this.arrangeNameId = arrangeNameId;
    }

    public Long getArrangeNameId() 
    {
        return arrangeNameId;
    }

    public String getArrangeName() {
        return arrangeName;
    }

    public void setArrangeName(String arrangeName) {
        this.arrangeName = arrangeName;
    }

    public void setCreatePerson(String createPerson)
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() 
    {
        return createPerson;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setDutyPersonId(Long dutyPersonId)
    {
        this.dutyPersonId = dutyPersonId;
    }

    public Long getDutyPersonId() 
    {
        return dutyPersonId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setDutyTime(Date dutyTime)
    {
        this.dutyTime = dutyTime;
    }

    public Date getDutyTime() 
    {
        return dutyTime;
    }
    public void setLinkmanId(Long linkmanId) 
    {
        this.linkmanId = linkmanId;
    }

    public Long getLinkmanId() 
    {
        return linkmanId;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public Integer getDutyStatus() {
        return dutyStatus;
    }

    public void setDutyStatus(Integer dutyStatus) {
        this.dutyStatus = dutyStatus;
    }

    public void setFile(String file)
    {
        this.file = file;
    }

    public String getFile() 
    {
        return file;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("dutyName", getDutyName())
            .append("arrangeNameId", getArrangeNameId())
            .append("arrangeName", getArrangeName())
            .append("createPerson", getCreatePerson())
            .append("createTime", getCreateTime())
            .append("dutyPersonId", getDutyPersonId())
            .append("dutyTime", getDutyTime())
            .append("linkmanId", getLinkmanId())
            .append("linkman", getLinkman())
            .append("phonenumber", getPhonenumber())
            .append("dutyStatus", getDutyStatus())
            .append("file", getFile())
            .append("notes", getNotes())
            .toString();
    }
}
